<?php
    namespace app\admin\model;
    use think\Model;
    class Common extends Model {
        //自定义内容
//        protected $globalScope = ['company_id'];
//        public function scopeCompany_id($query)
//        {
//            $token = (string)request()->header('Authorization');
//            $jwtData = app('auth')->decodeToken($token);
//            $company_id = $jwtData['data']->company_id;
//            if(!empty($company_id)){
//                $query->where('company_id',$company_id);
//            }
//        }
    }
?>